Шаблон:Маршрутная карта/doc/en
- This is an English translation of Шаблон:Маршрутная карта/doc.
Usage[править код]
The template generates diagrams of transport systems, such as railways, canals, footpaths, roads and so on.
Параметр | Описание | Тип | Статус | |
---|---|---|---|---|
Table heading | title заголовок | Heading displayed at the top of the table
| Строковый (без форматирования) | необязательный |
Heading color | title color цвет заголовка | Font color of the table heading text
| Строковый (без форматирования) | необязательный |
Heading background | title bg color цвет фона заголовка | Heading row background color
| Строковый (без форматирования) | необязательный |
Table collapsibility | collapsible сворачиваемый | By default, the table is collapsible. Values 'no' or '0' will disable this | Строковый (без форматирования) | необязательный |
Collapse state | collapse | The default state of the collapsible table: 'collapsed', 'autocollapse' or '[empty]' (= 'expanded') | Строковый (без форматирования) | необязательный |
Backlink to the template | navbar tnavbar | Non-empty value will provide backlinks to the template if transcluded to other pages; use {{subst:PAGENAME}}
| Строковый (без форматирования) | необязательный |
Position of Navbar | navbar pos | Value '1' for changing the Navbar position to the even level of the legend link, Value '2' put it at the bottom of the table
| Строковый (без форматирования) | необязательный |
Legend link | legend легенда | Pagename for the map legend link. Values '0' or 'no' will hide the map legend link
| Имя страницы | необязательный |
Table floating | float обтекание | Table floating relative to the page: 'left', 'right' or 'none' (for centering the table, use 'none' and define table style with margin:auto)
| Строковый (без форматирования) | необязательный |
Background color | bg цвет фона | Background color for the whole table
| Строковый (без форматирования) | необязательный |
Table CSS-style | style стиль | Additional CSS-styling of the whole table | Строковый (без форматирования) | необязательный |
Subheading | on top вверху | Subheading or an explanatory note at the top of the table | Строковый (без форматирования) | необязательный |
Footnote | footnote внизу | Footnote or references at the bottom of the table | Строковый (без форматирования) | необязательный |
Width of text columns | text-width ширина текста | Comma-separated list of widths of the text columns (recommended if using collapsible sections)
| Строковый (без форматирования) | необязательный |
Route map | 1 map | Coding for the route map as described at the template documentation | Строковый (без форматирования) | обязательный |
This template is intended as a single replacement for the entire series of "BS#" and "BS#-2" templates and is planned to support all their functions. The map (or 1) parameter is required.
Blank template with all available parameters:
{{Routemap|title= |title color= |title bg color= |collapsible= |collapse= |navbar={{subst:PAGENAME}} |legend= |text-width=,, |style= |on top= |1= <!-- map coding --> |footnote= }}
Map structure[править код]
{{routemap|title=Eurostar route map|text-width=25,110,90|1= ~~hour~~ ~~ ~~km KBHFa~~0:00~~[[St. Pancras railway station|St. Pancras International]]~~ ~~0 eHST~~ ~~ ~~[[Stratford International station|Stratford International]] (Opening 20xx) HST~~0:15~~[[Ebbsfleet International railway station|Ebbsfleet International]]~~ ~~37 exCONTgq\eABZg+r\~~ ~~ ~~[[Fawkham Junction]] {{RoutemapRoute|Licon=L|[[Chatham Main Line]]|enclosed=yes}} HST~~0:29~~[[Ashford International railway station|Ashford International]]~~ ~~90 tSTRa~~''0:31''~~ tSTR!~lZOLL~~ ~~ ~~[[Channel Tunnel]] across [[Strait of Dover]]~~{{BSsplit{{!}}United Kingdom|France|line=yes}}~~bg=#558cd3 tSTRe~~''0:51''~~ HST~~0:55~~[[Gare de Calais-Fréthun|Calais-Fréthun]] BHF~~1:22~~[[Gare de Lille-Europe|Lille-Europe]] \KRWgl\KRW+r \STR\STR!~lZOLL~~ ~~ ~~ ~~{{BSsplit{{!}}France|Belgium|line=yes}} KRW+l\KRWgr\KBHFe~~2:01~~[[Brussels-South|Bruxelles Midi/Brussel-Zuid]] KBHFe\KRWgl\KRW+r~~2:16~~[[Gare du Nord|Paris Gare du Nord]]~~ ~~492 \STR\KBHFe~~2:40~~[[Marne la Vallée-Chessy railway station|Marne la Vallée-Chessy]]~~([[Disneyland Resort Paris|Disneyland]]) -startCollapsible--replace \CONTf\~~ ~~ ~~''Seasonal service only'' KRW+l\KRWgr\ HST\KRWgl\KRW+r~~4:34~~[[Lyon]] ([[La Part-Dieu]]) STR\STR\KHSTe~~5:36~~ [[Avignon]] Centre HST\STR\~~5:52~~Avignon — [[TGV]] KHSTe\STR\~~6:17~~[[Aix-en-Provence]] — TGV HST~~7:12~~[[Moûtiers]]~~(ski) HST(R)~~7:30~~[[La Plagne|Aime la Plagne]]~~(ski, set down only) KHSTe~~7:51~~[[Bourg Saint Maurice]]~~(ski) -endCollapsible- |footnote=Times shown are fastest timetabled journey from London St Pancras. }}
Row format[править код]
The map is composed by rows from top to bottom. Each row may contain one or more icons horizontally and description text for explanation for that row. The basic format for each row is as follows:
Icon ID~~Main text
For more text cells:
Icon ID~~Time distance text~~Main text~~note 1~~note 2
- If you want to skip the middle text cell for the next text cell, you must use a white space between the text separators (
~~
), otherwise the wiki software will regard it as a user signature magicword, which overrides other functions.
For more icons on the same row, use backslash (\
) to separate between icon IDs:
Icon ID 1\Icon ID 2\Icon ID 3
The alignment and font size of each text cell is defined differently, but they can be overridden by using {{align}} template or span/div style. By default:
- "Time distance": right, smaller size
- "Main text": left, normal size
- "Note 1" left next to "main text", smaller font size
- "Note 2" right, smaller size
You may use <br/>
or {{BSsplit}} template to hard return the text in the same row as shown in the above example. It is usually done in the "time distance" and "note 2" cells because they use smaller font so the height of row will not be lengthened, avoiding break between icons vertically.